package com.wy.dao;

import com.wy.pojo.Danyuan;
import com.wy.pojo.Louyv;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface DanyuanDao extends JpaRepository<Danyuan,Integer> {

    @Query(value = "SELECT * FROM danyuan WHERE louyvid=?1",nativeQuery = true)
    List<Danyuan> searchidAll(Integer louyvId);
}
